package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.LitemallMemberRuleMapper;
import org.linlinjava.litemall.db.domain.LitemallMemberRule;
import org.linlinjava.litemall.db.domain.LitemallMemberRuleExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Administrator
 */
@Service
public class LitemallMemberRuleService {
    @Resource
    private LitemallMemberRuleMapper memberRuleMapper;

    public LitemallMemberRule findById(Integer memberRuleId) {
        return memberRuleMapper.selectByPrimaryKey(memberRuleId);
    }

    public List<LitemallMemberRule> list() {
        LitemallMemberRuleExample example = new LitemallMemberRuleExample();
        return memberRuleMapper.selectByExample(example);
    }


}
